package com.i2863.tools.weixinmp.dao.mapper;

import com.i2863.tools.weixinmp.domain.VideoInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/3/9.
 */
public interface VideoMapper {

    public VideoInfo getVideoByUrl(@Param("url") String url);

    public void updateThumb(@Param("id") Integer id, @Param("thumbPic") String thumbPic);

    public void updateDuration(@Param("id") Integer id, @Param("duration") String duration);

    public List<VideoInfo> getNoThumbVideoList();

    public List<VideoInfo> getNoDurationVideoList();

    public void update(VideoInfo info);

    public void save(VideoInfo info);
}
